Skip to content

[Maven] Avoid retrying requests to repos excessively#5130

Merged
brrygrdn merged 2 commits intomainfrom
brrygrdn/reduce-maven-retries
May 13, 2022
Merged

[Maven] Avoid retrying requests to repos excessively#5130
brrygrdn merged 2 commits intomainfrom
brrygrdn/reduce-maven-retries

Conversation

@brrygrdn
Copy link
Copy Markdown
Contributor

@brrygrdn brrygrdn commented May 11, 2022

Excon has a default retry strategy of 4 requests.

As part of Maven updates, we attempt to find a list of repository URLs to lookup in "parent" pom files, but generally treat a non-200 response as a nil return. In the case a parent URL points to a host that is unreachable, we can spend up to 100 seconds attempting a single this with the current configuration.

We should tolerate network weather, but 5 attempts is fairly excessive, so let's drop to a single retry for 2 attempts overall.

@brrygrdn brrygrdn requested a review from a team as a code owner May 11, 2022 19:21
@brrygrdn brrygrdn added the L: java:maven Maven packages via Maven label May 11, 2022
@brrygrdn brrygrdn force-pushed the brrygrdn/reduce-maven-retries branch from 6f28672 to 020a9c2 Compare May 11, 2022 19:51
@brrygrdn brrygrdn changed the title Avoid retrying requests to Maven repos excessively [Maven] Avoid retrying requests to repos excessively May 11, 2022
@brrygrdn brrygrdn merged commit 2eaf509 into main May 13, 2022
@brrygrdn brrygrdn deleted the brrygrdn/reduce-maven-retries branch May 13, 2022 10:37
@brrygrdn brrygrdn mentioned this pull request May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

L: java:maven Maven packages via Maven

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants